<!DOCTYPE html>
<html lang="en" xmlns:th="http//www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/green.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/register.css">

</head>
<body>

    <div id="div3" class="col-sm-4">
        <h3 class="panel-subtitle">用户注册</h3>
        <form action="/registerHandle" method="post">
<!--            显示错误信息-->
            <div id="error_msg" style="color: red" th:if="${session.register_error} != null" th:text="${session.register_error}"></div>
    <!-- 输入用户名 -->
            <div class="input-group margin-bottom-sm">
                <span class="input-group-addon input-group-addon-book">
                    <i class="fa fa-user fa-fw"></i>
                </span>
                <input name="username" class="form-control form-control-book" type="text" placeholder="请输入用户名">
            </div>
    <!-- 输入密码 -->
            <div class="input-group margin-bottom-sm">
                <span class="input-group-addon input-group-addon-book">
                    <i class="fa fa-key fa-fw"></i>
                </span>
                <input name="password" class="form-control form-control-book" type="password" placeholder="请输入密码">
            </div>
    <!-- 再次输入密码 -->
            <div class="input-group margin-bottom-sm">
                <span class="input-group-addon input-group-addon-book">
                    <i class="fa fa-key fa-fw"></i>
                </span>
                <input name="againPassword" class="form-control form-control-book" type="password" placeholder="再次输入密码">
            </div>


        <!-- 返回 -->
            <div id="div2">
                <a href="/login" class="pull-right btn btn-primary btn-checkout">
                    返回
                </a>
            </div>
        <!-- 注册 -->
            <div id="div4">
                <input type="submit" class="pull-right btn btn-primary btn-checkout" value="注册">
            </div>
        </form>
    </div>

</body>
</html>